﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Masterpage/CommonPage.master" AutoEventWireup="true" CodeFile="EditSpecial.aspx.cs" Inherits="Special_EditSpecial" %>

<%@ Register TagPrefix="editor" Assembly="WYSIWYGEditor" namespace="InnovaStudio" %>
<%@ Register Assembly="Expo.Training.BRule" Namespace="Expo.Training.BRule.Controls" TagPrefix="CC" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<%--<script src="http://www.jq22.com/jquery/jquery-ui-1.11.0.js"></script>--%>

<!--pagenav-->
<div class="pagenav"><strong>您现在的位置：</strong> 我的管理平台 > <a href="Default.aspx">专项推送管理</a> > 添加专项推送</div>
<!--pagenav end-->
<div style="overflow:auto;">
    <!--paneltitle-->
    <%--<div class="paneltitle">专项推送基本信息</div>--%>
     <div class="paneladd">
         <input type="button" class="btn" value="返回" onclick="javascript:window.location.href = 'Default.aspx';" />
    </div>
</div>
<div class="dataform">
        <div id="tabs">
            <ul>
                <li><a href="#tabs-1">专项推送基本信息</a></li>
                <li><a href="#tabs-2">课程资料</a></li>
            </ul>

            <div id="tabs-1">
                <div class="">
	                <table class="editortable" cellspacing="1">
                        <tr class="editortr">
        	                <th class="editorth" width="20%"><div>专项推送标题：</div></th>
                            <td class="editortd"><asp:TextBox ID="txt_Title" runat="server" CssClass="txtBox" MaxLength="40" Width="300px" /> &nbsp;<font color="red">*</font><span id="sp_BulletinT_error" class="note2"></span></td>
                        </tr>
                        <tr class="editortr" style="height:200px;">
        	                <th class="editorth"><div>专项推送内容：</div></th>
                            <td class="editortd">
                                <asp:TextBox ID="txt_Content" runat="server" Height="192px" 
                                    TextMode="MultiLine" Width="546px" MaxLength="100" 
                                    ontextchanged="txt_Content_TextChanged"></asp:TextBox> <font color="red">*<br />
                                </font><span id="sp_new_error" class="note2"></span>
                                    
                            </td>
                        </tr>
                        <tr class="editortr">
    	                    <th class="editorth"><div>缩略图：</div></th>
                            <td class="editortd">
                                <input id="File1" type="file" contenteditable="false" runat="server" /><asp:Literal ID="lt_tip" runat="server" Text="<font color='#999999'>[图片格式必须为.jpg,.jpeg,.png,.gif]</font>" /><asp:Literal ID="lt_Header" runat="server"/>
                                <br /><asp:Image ID="ImagePic" runat="server" Height="66px" Width="105px" />
                            </td>
                        </tr>
                        <tr class="editortr">
                            <th class="editorth">
                                <div>
                                    首页置顶：</div>
                            </th>
                            <td class="editortd">
                                <asp:CheckBox ID="CK_Top" runat="server" 
                                     Visible="true" />
                            </td>
                        </tr>
                        <tr id="tr1" class="editortr">
                            <th class="editorth">
                                <div>
                                    序号：</div>
                            </th>
                            <td class="editortd">
                                <asp:DropDownList ID="ddlNumber" runat="server" Width="200px">
                                    <asp:ListItem Value="1">慈溪1</asp:ListItem>
                                    <asp:ListItem Value="2">慈溪2</asp:ListItem>
                                    <asp:ListItem Value="3">慈溪3</asp:ListItem>
                                    <asp:ListItem Value="4">慈溪4</asp:ListItem>
                                    <asp:ListItem Value="5">慈溪5</asp:ListItem>
                                    <asp:ListItem Value="6">慈溪6</asp:ListItem>
                                    <asp:ListItem Value="101">巴马1</asp:ListItem>
                                    <asp:ListItem Value="102">巴马2</asp:ListItem>
                                    <asp:ListItem Value="103">巴马3</asp:ListItem>
                                    <asp:ListItem Value="104">巴马4</asp:ListItem>
                                    <asp:ListItem Value="105">巴马5</asp:ListItem>
                                    <asp:ListItem Value="106">巴马6</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr id="tr2" class="editortr">
    	                    <th class="editorth"><div>首页缩略图：</div></th>
                            <td class="editortd">
                                <input id="File2" type="file" contenteditable="false" runat="server" 
                                     /><asp:Literal ID="lt_tip2" runat="server" Text="<font color='#999999'>[图片格式必须为.jpg,.jpeg,.png,.gif]</font>" /><asp:Literal ID="lt_Header2" runat="server"/>
                                      <br /><asp:Image ID="ImagePic2" runat="server" Height="34px" Width="228px" />
                                &nbsp;</td>
                        </tr>
                        <tr class="editortr">
        	                <th class="editorth"><div></div></th>
                            <td class="editortd">
                                <asp:Button ID="btn_UP" CssClass="btn" runat="server" OnClick="DoEdit" 
                                    Text="确认修改" />
                            </td>
                        </tr>
                    </table>
             </div>
            </div>
            <div id="tabs-2">
                    <iframe frameborder="0" id="files" src="<%= ResolveFilePath("Special/CourseList.aspx?ID=" + this.SpecialID.ToString()) %>"  style="width: 100%; height: 400px;"></iframe>
            </div>
            
        </div>
</div>


        <script type="text/javascript">
            jQuery(function() {
                jQuery('#tabs').tabs();
                //隐藏序号和首页缩略图
                jQuery("#tr1").hide();
                jQuery("#tr2").hide();
                //根据置顶选项切换序号和首页缩略图的显示隐藏
                TopChange();

                jQuery("#<%=CK_Top.ClientID%>").click(function() {
                    TopChange();
                });
            });
            //根据置顶选项切换序号和首页缩略图的显示隐藏
            function TopChange()
            {
                if (jQuery("#<%=CK_Top.ClientID%>").attr("checked")) {
                    jQuery("#tr1").show();
                    jQuery("#tr2").show();
                }
                else {
                    jQuery("#tr1").hide();
                    jQuery("#tr2").hide();
                }
            }
        </script>

</asp:Content>




